<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>  
    <link rel="stylesheet" href="/ranking/Public/Admin/css/pintuer.css">
    <link rel="stylesheet" href="/ranking/Public/Admin/css/admin.css">
    
    <script src="/ranking/Public/Static/js/jquery.js"></script> 
	
</head>
<body>
 
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加捐款人</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="<?php echo U();?>">
      <input type="hidden" name="id" value="<?php echo ($data["id"]); ?>" />
      <div class="form-group">
        <div class="label">
          <label>昵称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<?php echo ($data["nickname"]); ?>" name="nickname" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="clear"></div>
      <div class="form-group">
        <div class="label">
          <label>捐款金额：</label>
        </div>
        <div class="field">
          <input  type="text" class="input" name="money" value="<?php echo ($data["money"]); ?>" />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label >手机号：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="mobile" value="<?php echo ($data["mobile"]); ?>"/>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button id="send" class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
<script>
$(function(){
  var url='ws://192.168.2.11:8000';
  socket=new WebSocket(url);
  socket.onopen=function(){log('连接成功')}
  socket.onmessage=function(msg){log('获得消息:'+msg.data);console.log(msg);}
  socket.onclose=function(){log('断开连接')}

  $("#send").click(function(){
      socket.send('abc');
  });

})
function log(var1){
  $('.log').append(var1+"\r\n");
}

</script>


</body>
</html>